package tests;

import cn.faifai.desktop.faifaiTagDesktopApplication;
import cn.faifai.tagapi.service.BackgroundServices.FileHardLinksClearService;
import cn.faifai.tagapi.service.BackgroundServices.FileUrlClearService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = {faifaiTagDesktopApplication.class})
public class ScheculedConfig {
    @Autowired
    FileUrlClearService fileUrlClearService;
    @Autowired
    FileHardLinksClearService hardLinkClearService;

    @Test
    public void clearFileUrl(){
        fileUrlClearService.clearFileUrl();
    }
    @Test
    public void clearHardLinks(){
        hardLinkClearService.clearFileHardLinks();
    }
}
